package com.homedo.odin.solution.dao;

import com.homedo.core.common.base.dao.BaseDao;
import com.homedo.odin.solution.model.entity.UserPopularityDetail;
import org.apache.ibatis.annotations.Param;

/**
 * <p> 人气明细表 Mapper 接口 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
public interface UserPopularityDetailMapper extends BaseDao<UserPopularityDetail> {

    Integer selectCountByType(@Param("userId") Integer userId, @Param("type") Integer type);

    Integer selectCountByTypeAndDate(@Param("userId") Integer userId, @Param("type") Integer type,
            @Param("date") String date);

    Integer selectScoreCountByUserId(@Param("userId") Integer userId);
}